import { OperationLog, Sysrole } from "./sparrow";

export interface Menu extends OperationLog{
    id?: string;
    name: string;
    icon?: string;
    code: string;
    parentId?: string;
    sort?: number;
    url: string;
    stat: string;
    system?: boolean;
}

export interface UserMenu{

}

export interface UserMenuPK{
  username: string;
  menuId: string;
}

export interface SysroleMenu{
  menu: Menu;
  sysrole: Sysrole;
}

export interface SysroleMenuPK{
  sysroleId: string;
  menuId: string;
}

export interface MenuPermission{
  userMenuPKs?: UserMenuPK[];
  sysroleMenuPKs?: SysroleMenuPK[];
}
